﻿using System;
using Microsoft.Xna.Framework;
using Terraria.GameContent.UI.Elements;
using Terraria.UI;

namespace Terraria.ModLoader.UI
{
	// Token: 0x0200027A RID: 634
	internal static class UICommon
	{
		// Token: 0x060019FF RID: 6655 RVA: 0x00012694 File Offset: 0x00010894
		internal static void FadedMouseOver(UIMouseEvent evt, UIElement listeningElement)
		{
			Main.PlaySound(12, -1, -1, 1, 1f, 0f);
			((UIPanel)evt.Target).BackgroundColor = UICommon.defaultUIBlue;
		}

		// Token: 0x06001A00 RID: 6656 RVA: 0x000126C0 File Offset: 0x000108C0
		internal static void FadedMouseOut(UIMouseEvent evt, UIElement listeningElement)
		{
			((UIPanel)evt.Target).BackgroundColor = UICommon.defaultUIBlueMouseOver;
		}

		// Token: 0x06001A01 RID: 6657 RVA: 0x000126D7 File Offset: 0x000108D7
		internal static void CustomFadedMouseOver(Color customColor, UIMouseEvent evt, UIElement listeningElement)
		{
			Main.PlaySound(12, -1, -1, 1, 1f, 0f);
			((UIPanel)evt.Target).BackgroundColor = customColor;
		}

		// Token: 0x06001A02 RID: 6658 RVA: 0x000126FF File Offset: 0x000108FF
		internal static void CustomFadedMouseOut(Color customColor, UIMouseEvent evt, UIElement listeningElement)
		{
			((UIPanel)evt.Target).BackgroundColor = customColor;
		}

		// Token: 0x04001759 RID: 5977
		internal static Color defaultUIBlue = new Color(73, 94, 171);

		// Token: 0x0400175A RID: 5978
		internal static Color defaultUIBlueMouseOver = new Color(63, 82, 151) * 0.7f;
	}
}
